@using Mapster
@using BlazorApp.Pages.Common.Metadata
@using BlazorApp.Pages.Event
@using BlazorApp.Pages.MutatingWebhookConfiguration
@using BlazorApp.Pages.Common.Html.HTable
@using k8s.Models
@inherits BlazorApp.Pages.Common.DrawerPageBase<k8s.Models.V1ValidatingWebhookConfiguration>
@if (ValidatingWebhookConfiguration != null)
{
    <ValidatingWebhookConfigurationAction Item="ValidatingWebhookConfiguration" MenuMode="MenuMode.Horizontal"></ValidatingWebhookConfigurationAction>
    <Divider Orientation="left" Style="font-weight:bold">@L["Metadata"]</Divider>
    <MetadataView Item="ValidatingWebhookConfiguration.Metadata" ExplainFieldPrefix="validatingWebhookConfiguration"></MetadataView>
    <Divider Orientation="left" Style="font-weight:bold">@L["Spec"]</Divider>
    <HTable Bordered Column="1">
        <WebhooksView Webhooks="ValidatingWebhookConfiguration.Webhooks.Adapt<IList<V1MutatingWebhook>>()" ExplainFieldPrefix="validatingWebhookConfiguration.webhooks"></WebhooksView>
    </HTable>

    <MiniEventListView Uid="@ValidatingWebhookConfiguration.Metadata.Uid"></MiniEventListView>
}
